<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
    py:extends="'master.kid'">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title>${title}</title>
</head>
<body>
   <table>
   <tr>
     <th>Id</th>
     <th>Name</th>
     <th>Tags</th>
     <th>Created</th>
     <th>Comments</th>
     <th>Actions</th>
   </tr>
   <tr py:for="i, post in enumerate(posts)" class="${i%2 and 'odd' or 'even'}">
     <td>${post.id}</td>
     <td>${post.title}</td>
     <td>${post.tags}</td>
     <td>${post.created}</td>
     <td>${len(post.comments)}</td>
     <td><a href="${post.permalink}">View</a>
         <a href="edit/${post.id}">Edit</a>
         <a href="delete/${post.id}">Delete</a>
     </td>
   </tr>
   </table>
</body>
</html>
